/*
 * @Author: 陈俊升 761723995@qq.com
 * @Date: 2023-11-08 08:51:15
 * @LastEditors: 陈俊升 761723995@qq.com
 * @LastEditTime: 2023-11-30 16:41:15
 * @FilePath: /hr_new_vue3/src/apis/management/contract/baseSetting/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/* 合同-合同档案库api */

import { ajaxService } from '@/utils/request';

const env = import.meta.env;
// const baseURL1 = env.VITE_API_BASE_URL;
const baseURL = env.VITE_DEV_BASE_URL;
// const baseURL = env.VITE_APP_BASE_URL;
const baseURL2 = env.VITE_APP_BASE_URL;
const baseURL3 = env.VITE_DEV_BASE_URL;

/**
 * 获取合同档案列表
 * typeId 合同类型id
 * type 1历史合同 2变更合同 3解除合同 4终止合同
 */
export function GetContractFileList(params: { typeId: number; type: number }) {
  return ajaxService({
    url: '/hr/contract/basic_setting/contract_list/archive',
    method: 'get',
    params,
    baseURL
  });
}

/**
 * 修改已签署合同状态
 * id 合同id
 */
export function GetContractDetail(params: { id: number }) {
  return ajaxService({
    url: '/hr/contract/basic_setting/contract_list/contract/detail',
    method: 'get',
    params,
    baseURL
  });
}
